package com.yaorange.teaching.index;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yaorange.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author coach tam
 * @email 327395128@qq.com
 * @values 坚持灵活 灵活坚持
 * @since 2024/11/19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(indexName = "high_interview_index")
public class HighInterviewIndex {

    /** 面试题ID */
    @Id
    private Long id;

    /** 阶段 */
    @Field(type = FieldType.Long)
    private Long stage;

    /** 面试题内容 */
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String question;

    /** 答案 */
    @Field(type = FieldType.Keyword,index = false)
    private String answer;

    /** 知识点 */
    @Field(type = FieldType.Keyword)
    private String knowledgePoint;

    /** 重要性，1-一般,2-重要,3-非常重要 */
    @Field(type = FieldType.Long)
    private Long importance;
}
